#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20230706.sql ./mysql/db
cp ../sql/ry_config_20220929.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../qcby-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy qcby-gateway "
cp ../qcby-gateway/target/qcby-gateway.jar ./qcby/gateway/jar

echo "begin copy qcby-auth "
cp ../qcby-auth/target/qcby-auth.jar ./qcby/auth/jar

echo "begin copy qcby-visual "
cp ../qcby-visual/qcby-monitor/target/qcby-visual-monitor.jar  ./qcby/visual/monitor/jar

echo "begin copy qcby-modules-system "
cp ../qcby-modules/qcby-system/target/qcby-modules-system.jar ./qcby/modules/system/jar

echo "begin copy qcby-modules-file "
cp ../qcby-modules/qcby-file/target/qcby-modules-file.jar ./qcby/modules/file/jar

echo "begin copy qcby-modules-job "
cp ../qcby-modules/qcby-job/target/qcby-modules-job.jar ./qcby/modules/job/jar

echo "begin copy qcby-modules-gen "
cp ../qcby-modules/qcby-gen/target/qcby-modules-gen.jar ./qcby/modules/gen/jar

